package com.zian.domain.vo;

import com.alibaba.fastjson.annotation.JSONType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.zian.domain.po.SysOrderItem;
import com.zian.enums.OrderStatusEnum;
import com.zian.enums.PayStatusEnum;
import com.zian.enums.PayTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel(description = "订单详情VO")
public class OrderDetailsVO {

    @ApiModelProperty( "订单表主键id")
    private Long id;

    @ApiModelProperty( "订单号")
    private String orderNo;

    @ApiModelProperty( "订单状态")
    private OrderStatusEnum orderStatus;

    @ApiModelProperty( "支付类型")
    private PayTypeEnum payType;

    @ApiModelProperty( "订单body ，订单备注")
    private String extraInfo;

    @ApiModelProperty( "订单总价")
    private BigDecimal totalPrice;

    @ApiModelProperty( "订单时间")
    private LocalDateTime createTime;

   @ApiModelProperty( "商品列表")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<SysOrderItem> orderItemList;


}
